# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=py3-nbxmpp
_pkgname=nbxmpp
pkgver=4.5.0
pkgrel=0
pkgdesc="A non-blocking XMPP implementation for python"
url="https://dev.gajim.org/gajim/python-nbxmpp/"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-idna py3-precis-i18n py3-packaging libsoup3"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
options="!check" # no test suite
builddir="$srcdir"/$_pkgname-$pkgver

replaces=py-nbxmpp # Backwards compatibility
provides=py-nbxmpp=$pkgver-r$pkgrel # Backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl

}

sha512sums="
eb557963600fedf6caf9cf0beb34d5dbf551336903de11923f6f17aaa68c227d9ead8956ef6978bbca2f6a54700e3fa6001694152a23b60cb404e542524237c2  nbxmpp-4.5.0.tar.gz
"
